home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 13 / CU Amiga Magazine's Super CD-ROM 13 (1997)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1997-08].iso / CUCD / Graphics / Ghostscript / src / libpng / makefile.dj2 < prev    next >
Makefile  |  1996-06-13  |  1KB  |  52 lines

  1. # DJGPP (DOS gcc) makefile for libpng
  2. # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
  3. # For conditions of distribution and use, see copyright notice in png.h
  4.  
  5. CC=gcc
  6. CFLAGS=-I../zlib -O
  7. LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
  8.  
  9. RANLIB=ranlib
  10.  
  11. # where make install puts libpng.a and png.h
  12. #prefix=/usr/local
  13. prefix=.
  14.  
  15. OBJS = png.o pngrcb.o pngrutil.o pngtrans.o pngwutil.o \
  16.     pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o \
  17.     pngmem.o pngerror.o pngpread.o
  18.  
  19. all: libpng.a pngtest
  20.  
  21. libpng.a: $(OBJS)
  22.     ar rc $@  $(OBJS)
  23.     $(RANLIB) $@
  24.  
  25. pngtest: pngtest.o libpng.a
  26.     $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
  27.     coff2exe pngtest
  28.  
  29. test: pngtest
  30.     ./pngtest
  31. clean:
  32.     rm -f *.o libpng.a pngtest pngout.png
  33.  
  34. # DO NOT DELETE THIS LINE -- make depend depends on it.
  35.  
  36. png.o: png.h pngconf.h
  37. pngerror.o: png.h pngconf.h
  38. pngrio.o: png.h pngconf.h
  39. pngwio.o: png.h pngconf.h
  40. pngmem.o: png.h pngconf.h
  41. pngrcb.o: png.h pngconf.h
  42. pngread.o: png.h pngconf.h
  43. pngpread.o: png.h pngconf.h
  44. pngrtran.o: png.h pngconf.h
  45. pngrutil.o: png.h pngconf.h
  46. pngtest.o: png.h pngconf.h
  47. pngtrans.o: png.h pngconf.h
  48. pngwrite.o: png.h pngconf.h
  49. pngwtran.o: png.h pngconf.h
  50. pngwutil.o: png.h pngconf.h
  51.  
  52.